package com.example.sbblog3.dao;


import com.example.sbblog3.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {
    Optional<User> findFirstByName(String name);

    Optional<User> findFirstByEmail(String email);
}